﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace File2
{
    class Program
    {
        static void Main(string[] args)
        {  
            int sum =0;
            int b = 0;
            string s = File.ReadAllText("Int.txt");
            char[] a = s.ToCharArray();
            for (int i = 0; i < a.Length; i++)
            {
                if (a[i]!=' ')
                {
                    string s5 = a[i].ToString();
                    b =int.Parse(s5);
                    sum += b;
                }
                if (a[i] == ' ')
                {
                    Console.Write(sum + " ");
                    sum = 0;
                }
            }           
        }
    }
}
